package com.yb.nowcoder;

import java.util.Scanner;

public class Main16 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextLine()) {
            String s = in.nextLine();
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < s.length(); i++) {
                sb.append(getValue(s.charAt(i)));
            }
            System.out.println(sb.toString());
        }
    }

    public static String getValue(char c) {
        if (c >= '0' && c <= '9') {
            return String.valueOf(c);
        } else if (c == 'a' || c == 'b' || c == 'c') {
            return "2";
        } else if (c == 'd' || c == 'e' || c == 'f') {
            return "3";
        } else if (c == 'g' || c == 'h' || c == 'i') {
            return "4";
        } else if (c == 'g' || c == 'h' || c == 'i') {
            return "4";
        } else if (c == 'j' || c == 'k' || c == 'l') {
            return "5";
        } else if (c == 'm' || c == 'n' || c == 'o') {
            return "6";
        } else if (c == 'p' || c == 'q' || c == 'r' || c == 's') {
            return "7";
        } else if (c == 't' || c == 'u' || c == 'v') {
            return "8";
        } else if (c == 'w' || c == 'x' || c == 'y' || c == 'z') {
            return "9";
        } else if (c >= 'A' && c <= 'Y') {
            return String.valueOf((char) (c + 33));
        } else if (c == 'Z') {
            return "a";
        } else {
            return String.valueOf(c);
        }
    }
}
